/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.team3309.beta.subsystems;

import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 * @author vmagro
 */
public class Compressor extends Subsystem {

    private static edu.wpi.first.wpilibj.Compressor compressor = null;
    
    private static Compressor instance = null;
    
    public static Compressor getInstance() {
        if (instance == null) {
            instance = new Compressor();

            // Set default command here, like this:
            // instance.setDefaultCommand(new CommandIWantToRun());
            compressor = new edu.wpi.first.wpilibj.Compressor(4, 7, 4, 1);
            compressor.start();
        }
        return instance;
    }

    // Initialize your subsystem here
    private Compressor() {
    }
    
    public void start(){
        compressor.start();
    }
    
    public void stop(){
        compressor.stop();
    }
}
